Fix testing bins with lib deps
authorAlex Crichton <alex@alexcrichton.com>
Wed, 9 Jul 2014 20:08:44 +0000 (13:08 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 9 Jul 2014 20:08:44 +0000 (13:08 -0700)
commit3550dd5040894d0a9239e1d6b86335c862ac93e2
treeeb18c42bf894edd7d59a67f164d6cc9c6d6a5e35
parenta5bcfa3746d70955e86f2d00c0ca70d51414a9c2
Fix testing bins with lib deps

If a package had both bin and lib deps, `cargo test` was not building the `lib`
dependency when building the bins with `--test`. This commit adds an extra
"test" profile (not compiled with --test) for situations such as this which is
filtered out normally but kept around for the `cargo test` case.
src/cargo/util/toml.rs
tests/test_cargo_test.rs